import { FriendsO, HomeO, Search, SettingO } from '@react-vant/icons';

export const setIcon = (str:any) => {
    switch (str) {
      case "FriendsO":
        return <FriendsO/>
      case "HomeO":
          return <HomeO/>
      case "Search":
        return <Search/>
      case "SettingO":
        return <SettingO/>
      default:
        return <FriendsO/>
    }
  }
  